package br.ufu.si.util;

public class ReflectionUtil {  
  
   public static String buildGetMethodName(String fieldName) {  
      StringBuilder methodName = new StringBuilder("get");  
      methodName.append(fieldName.substring(0, 1)  
            .toUpperCase());  
      methodName.append(fieldName.substring(1, fieldName.length()));  
      return methodName.toString();  
   }  
     
   public static String buildSetMethodName(String fieldName) {  
      StringBuilder methodName = new StringBuilder("set");  
      methodName.append(fieldName.substring(0, 1)  
            .toUpperCase());  
      methodName.append(fieldName.substring(1, fieldName.length()));  
      return methodName.toString();  
   }  
        
}  